+1999-10-26 Havoc Pennington <hp@pobox.com>
+
+ * src/gdk-pixbuf-loader.h: fix signals
+
+ * src/gdk-pixbuf-io.h: add new vtable fields
+
+
1999-10-26 Jonathan Blandford <jrb@redhat.com>
* src/gdk-pixbuf-loader.h: New Class. Beginning of progrssive
#include "gdk-pixbuf.h"
#include <stdio.h>
+typedef void (* ModulePreparedNotifyFunc) (GdkPixbuf *pixbuf, gpointer user_data);
+
typedef struct _ModuleType ModuleType;
struct _ModuleType {
char *module_name;
GModule *module;
GdkPixbuf *(* load) (FILE *f);
GdkPixbuf *(* load_xpm_data) (const gchar **data);
+
+ /* Incremental loading */
+ gpointer (* begin_load) (ModulePreparedNotifyFunc func, gpointer user_data);
+ void (* stop_load) (gpointer context);
+ void (* load_increment)(gpointer context, guchar *buf, guint size);
+ GdkPixbuf *(* get_pixbuf) (gpointer context);
};
ModuleType *gdk_pixbuf_get_module (gchar *buffer, gint size);
+
struct _GdkPixbufLoaderClass {
GtkObjectClass parent_class;
- void (* area_updated) (GdkPixbufLoader *loader,
- int x, int y, int width, int height);
- void (* area_prepared) (GdkPixbufLoader *loader,
- GdkPixbuf *image,
- int x, int y, int width, int height);
+ void (* area_prepared) (GdkPixbufLoader *loader);
+
+ void (* area_updated) (GdkPixbufLoader *loader,
+ int x, int y, int width, int height);
};
\f
struct _GdkPixbufLoaderClass {
GtkObjectClass parent_class;
- void (* area_updated) (GdkPixbufLoader *loader,
- int x, int y, int width, int height);
- void (* area_prepared) (GdkPixbufLoader *loader,
- GdkPixbuf *image,
- int x, int y, int width, int height);
+ void (* area_prepared) (GdkPixbufLoader *loader);
+
+ void (* area_updated) (GdkPixbufLoader *loader,
+ int x, int y, int width, int height);
};
\f